<script setup lang="ts">
//接收父组件传递的数据
import { defineProps } from 'vue'
const props = defineProps({
  title: String,
  content: String
})
</script>

<template>
<h2> {{title}}</h2>
  <div class="content">
    {{content}}
  </div>
</template>

<style scoped>
 h2 {
    color: red;

    text-align: center;

 }
 .content{
      text-align: center;
 }
</style>